﻿using KingsSharp.Core.Data;
using System;

namespace CRM.Admin.Contracts.Model.Sys
{
    public class SerialNum:EntityBase<Guid>
    {
        /// <summary>
        /// 流水号长度
        /// </summary>
        public short Length { get; set; }

        /// <summary>
        /// 起始值
        /// </summary>
        public int DefaultValue { get; set; }

        /// <summary>
        /// 流水号表达式
        /// </summary>
        public string Expression { get; set; }

        /// <summary>
        /// 生成方式 0 按年 1 按月 2 按天 3按小时
        /// </summary>
        public short Type { get; set; }

        /// <summary>
        /// 业务编码
        /// </summary>
        public string BusinessCode { get; set; }
    }
}
